package com.site.wisdom_construction.service.safetyModule;

import com.site.wisdom_construction.dao.safetyModule.SafetyInspectionRecordDao;
import com.site.wisdom_construction.entity.safetyModule.SafetyInspectionRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/13
 * @Description
 */
@Service
public class SafetyInspectionRecordService implements SafetyInspectionRecordDao {
    @Autowired
    private SafetyInspectionRecordDao safetyInspectionRecordDao;

    @Override
    public int insertSafetyInspectionRecord(Map map) {
        return safetyInspectionRecordDao.insertSafetyInspectionRecord(map);
    }

    @Override
    public int deleteSafetyInspectionRecord(Map map) {
        return safetyInspectionRecordDao.deleteSafetyInspectionRecord(map);
    }

    @Override
    public int updateSafetyInspectionRecord(Map map) {
        return safetyInspectionRecordDao.updateSafetyInspectionRecord(map);
    }

    @Override
    public List<SafetyInspectionRecord> findSafetyInspectionRecordByPage(Map map) {
        return safetyInspectionRecordDao.findSafetyInspectionRecordByPage(map);
    }

    @Override
    public long Total(Map map) {
        return safetyInspectionRecordDao.Total(map);
    }
}
